package com.bjdd.jdy.ui.resetPwd;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;

import java.io.IOException;

import rx.Observable;

/**
 * Created by Administrator on 2017/4/12.
 */

public interface ResetPwdContract {
    interface Model extends BaseModel{
        Observable<BaseResult<String>> getCodeModel(String mobile, String timestamp, String sign);
        Observable<BaseResult<String>> getResultModel(String mobile,String pwd,String code,String timestamp,String sign);
    }
    interface View extends BaseView {
        void resetSuccess();
    }
    abstract class Presenter extends BasePresenter<ResetPwdContract.Model,ResetPwdContract.View>{
        public abstract void commit(String code,String phone,String pwd);
        public abstract void getCode(String phone);
    }
}
